<template>
  <div class="pages">
    <van-sticky>
      <div class="header">
        <div class="fls" @click="$router.back(-1)">
          <img src="../../../static/images/icon-back.png" alt="">
        </div>
        <div class="centern">邀请成员</div>
        <div class="fls"></div>
      </div>
    </van-sticky>

    <div class="ibodty">
      <div class="titleheaeer">方法一：面对面扫二维码，添加成员加入</div>

      <div class="qrcode">
        <!-- <img :src="'data:image/png;base64,'+ verifyCode" alt=""> -->
        <!--        <img :src='this.$url+"/agencies/teams/members/invite-qrcode?teamId="+id +"&width=300&height=300"' alt="">-->
        <img :src="`${baseURL}/agencies/teams/members/invite-qrcode?teamId=${id}&width=300&height=300`"/>
      </div>

      <!-- <div class="twotess">方法二：分享链接，添加成员</div> -->

      <!-- <div class="fenxiangter">
          <div class="listerb">
              <img src="../../../static/images/icon-wx.png" alt="">
              <div class="titile">微信</div>
          </div>
          <div class="listerb">
              <img src="../../../static/images/icon-qq.png" alt="">
              <div class="titile">QQ</div>
          </div>

          <div class="listerb">
              <img src="../../../static/images/icon-fzlj.png" alt="">
              <div class="titile">复制链接</div>
          </div>
      </div> -->

    </div>
  </div>
</template>

<script>
import { baseURL } from '../../api/config'

export default {
  beforeCreate() {
    document.querySelector('body').setAttribute('style', 'background:#fff')
  },
  data() {
    return {
      id: this.$route.query.id,
      verifyCode: '',
      baseURL
    }
  }
}
</script>

<style scoped>
.pages {
  width: 100%;
}

.header {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
  background: #3288FF;
}

.header > .fls {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header > .fls > img {
  width: 100%;
  height: 100%;
}

.centern {
  color: #FFFFFF;
  font-family: OPPOSans;
  font-weight: medium;
  font-size: 17px;
  letter-spacing: 0px;
}

.ibodty {
  width: 100%;
  padding: 0 11.6%;
  box-sizing: border-box;
  margin-top: 40px;
}

.titleheaeer {
  color: #333333;
  font-family: OPPOSans;
  font-weight: medium;
  font-size: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.qrcode > img {
  width: 200px;
  height: 200px;
}

.twotess {
  margin-top: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  font-family: OPPOSans;
  font-weight: medium;
  font-size: 16px;
}

.fenxiangter {
  width: 100%;
  margin-top: 24px;
  padding: 0 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.listerb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.listerb > img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.listerb > .titile {
  color: #4F4F4F;
  font-family: OPPOSans;
  font-weight: regular;
  font-size: 14px;
  margin-top: 8px;
}
</style>
